import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:ytbusiness/config/style.dart';
import 'package:ytbusiness/config/yt_theme.dart';
import 'package:ytbusiness/utils/screen_adaptation.dart';
import 'package:ytbusiness/widgets/widgets.dart';


//服务地区设置
class ServiceLoactionSet extends StatefulWidget {
  @override
  _ServiceLoactionSetState createState() => _ServiceLoactionSetState();
}

class _ServiceLoactionSetState extends State<ServiceLoactionSet> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: YTStyle.bgColor,
      appBar: customAppBar(context,title: "服务地区设置"),
      body: SingleChildScrollView(
        child: Container(
          margin: EdgeInsets.only(top: setWidth(15)),
          padding: EdgeInsets.only(top: setWidth(23),left: setWidth(15),right: setWidth(15),bottom: setWidth(23)),
          color: Colors.white,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Container(
                    child: Text("服务地区",style: TextStyle(color: Color(0xff323232),fontSize: setSp(15)),),
                  ),
                  Expanded(
                    child: Container(
                      child: ListView.builder(
                          shrinkWrap: true,
                          physics: NeverScrollableScrollPhysics(),
                          itemCount: 3,
                          itemBuilder: (context,index){
                        return Container(
                          margin: EdgeInsets.only(bottom: setWidth(5)),
                          alignment: Alignment.topRight,
                          child: Text("安徽-合肥-庐阳区 ",style: TextStyle(color: Color(0xff989898),fontSize: setSp(15)),),
                        );
                      }),
                    ),
                  )
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}
